package com.jinmdz.fmis.api.admin.model.role;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 业务角色保存数据
 *
 * @author LiCongLu
 * @date 2020-03-18 11:31
 */
@ApiModel(value = "业务角色保存数据", description = "业务角色保存数据")
public class RoleSaveData extends BaseBean {
    /**
     * 主键
     */
    @AnValidate(name = "主键", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "主键", name = "id", position = 1)
    private Integer id;

    /**
     * 业务系统主键
     */
    @AnValidate(name = "业务系统主键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "业务系统主键", name = "businessSystemId", position = 2)
    private Integer businessSystemId;

    /**
     * 业务系统
     */
    @AnValidate(name = "业务系统")
    @ApiModelProperty(value = "业务系统", name = "businessSystemName", position = 2)
    private String businessSystemName;

    /**
     * 角色编码
     */
    @AnValidate(name = "角色编码", required = true)
    @ApiModelProperty(value = "角色编码", name = "roleCode", position = 3)
    private String roleCode;

    /**
     * 角色名称
     */
    @AnValidate(name = "角色名称", required = true)
    @ApiModelProperty(value = "角色名称", name = "roleName", position = 4)
    private String roleName;

    /**
     * 角色分类
     */
    @AnValidate(name = "角色分类", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "角色分类", name = "roleTypeCode", position = 5)
    private Integer roleTypeCode;

    /**
     * 禁用状态
     */
    @AnValidate(name = "禁用状态", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "禁用状态", name = "disableState", position = 6)
    private Integer disableState;

    /**
     * 排序
     */
    @AnValidate(name = "排序", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "排序", name = "sort", position = 7)
    private Integer sort;

    /**
     * 备注
     */
    @AnValidate(name = "备注")
    @ApiModelProperty(value = "备注", name = "remark", position = 8)
    private String remark;

    /**
     * 数据版本号
     */
    @AnValidate(name = "数据版本号")
    @ApiModelProperty(value = "数据版本号", name = "version", position = 9)
    private Long version;

    public Integer getId() {
        return id;
    }

    public RoleSaveData setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getBusinessSystemId() {
        return businessSystemId;
    }

    public RoleSaveData setBusinessSystemId(Integer businessSystemId) {
        this.businessSystemId = businessSystemId;
        return this;
    }

    public String getBusinessSystemName() {
        return businessSystemName;
    }

    public RoleSaveData setBusinessSystemName(String businessSystemName) {
        this.businessSystemName = businessSystemName;
        return this;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public RoleSaveData setRoleCode(String roleCode) {
        this.roleCode = roleCode;
        return this;
    }

    public String getRoleName() {
        return roleName;
    }

    public RoleSaveData setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }

    public Integer getRoleTypeCode() {
        return roleTypeCode;
    }

    public RoleSaveData setRoleTypeCode(Integer roleTypeCode) {
        this.roleTypeCode = roleTypeCode;
        return this;
    }

    public Integer getDisableState() {
        return disableState;
    }

    public RoleSaveData setDisableState(Integer disableState) {
        this.disableState = disableState;
        return this;
    }

    public Integer getSort() {
        return sort;
    }

    public RoleSaveData setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public RoleSaveData setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Long getVersion() {
        return version;
    }

    public RoleSaveData setVersion(Long version) {
        this.version = version;
        return this;
    }
}
